<?php
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
/*echo $_REQUEST['pro_id'];
echo $_REQUEST['project_name'];
echo $_REQUEST['project_manager'];
echo $_REQUEST['pro_description'];
echo $_REQUEST['start_date'];
echo $_REQUEST['complete_date'];
echo $_REQUEST['pro_status'];*/
include "../../operations/connection.php";
	
try {
	
	$query = "insert into pr_project(IDProject,NameProject,Description,IDManager,DateStart,DateComplete,Status)
	values('".$_REQUEST['pro_id']."','".$_REQUEST['project_name']."','".$_REQUEST['pro_description']."',
	'".$_REQUEST['project_manager']."','".$_REQUEST['start_date']."','".$_REQUEST['complete_date']."','".$_REQUEST['pro_status']."')";
	
	mysql_query($query);	
	
	header( 'Location: ../../project_admin.php?content=admin/project/addcomposition.php&id='.$_REQUEST['pro_id']);
} catch (Exception $e) {
	mysql_close($connection);
	header( 'Location: ../../project_admin.php?content=admin/project/list_project.php' );
}

mysql_close($connection);

?>